package com.esri.core.tasks.na;

import com.esri.core.internal.util.d;
import org.codehaus.jackson.JsonParser;
import org.codehaus.jackson.JsonToken;

/* loaded from: classes.dex */
public class AttributeParameterValue {
    private String attributeName;
    private String parameterName;
    private String value;

    public AttributeParameterValue() {
    }

    public AttributeParameterValue(String str, String str2, String str3) {
        this.attributeName = str;
        this.parameterName = str2;
        this.value = str3;
    }

    public String getAttributeName() {
        return this.attributeName;
    }

    public void setAttributeName(String str) {
        this.attributeName = str;
    }

    public String getParameterName() {
        return this.parameterName;
    }

    public void setParamterName(String str) {
        this.parameterName = str;
    }

    public String getValue() {
        return this.value;
    }

    public void setValue(String str) {
        this.value = str;
    }

    public static AttributeParameterValue fromJson(JsonParser jsonParser) throws Exception {
        if (d.c(jsonParser)) {
            AttributeParameterValue attributeParameterValue = new AttributeParameterValue();
            while (jsonParser.nextToken() != JsonToken.END_OBJECT) {
                String currentName = jsonParser.getCurrentName();
                jsonParser.nextToken();
                if ("attributeName".equals(currentName)) {
                    attributeParameterValue.attributeName = jsonParser.getText();
                } else if ("parameterName".equals(currentName)) {
                    attributeParameterValue.parameterName = jsonParser.getText();
                } else if ("value".equals(currentName)) {
                    attributeParameterValue.value = jsonParser.getText();
                } else {
                    jsonParser.skipChildren();
                }
            }
            return attributeParameterValue;
        }
        return null;
    }

    public int hashCode() {
        String str = this.attributeName;
        int hashCode = ((str == null ? 0 : str.hashCode()) + 31) * 31;
        String str2 = this.parameterName;
        int hashCode2 = (hashCode + (str2 == null ? 0 : str2.hashCode())) * 31;
        String str3 = this.value;
        return hashCode2 + (str3 != null ? str3.hashCode() : 0);
    }

    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj != null && getClass() == obj.getClass()) {
            AttributeParameterValue attributeParameterValue = (AttributeParameterValue) obj;
            String str = this.attributeName;
            if (str == null) {
                if (attributeParameterValue.attributeName != null) {
                    return false;
                }
            } else if (!str.equals(attributeParameterValue.attributeName)) {
                return false;
            }
            String str2 = this.parameterName;
            if (str2 == null) {
                if (attributeParameterValue.parameterName != null) {
                    return false;
                }
            } else if (!str2.equals(attributeParameterValue.parameterName)) {
                return false;
            }
            String str3 = this.value;
            if (str3 == null) {
                if (attributeParameterValue.value != null) {
                    return false;
                }
            } else if (!str3.equals(attributeParameterValue.value)) {
                return false;
            }
            return true;
        }
        return false;
    }
}
